package com.literaryfamily.literaryfamily.dao;

import com.literaryfamily.literaryfamily.entity.Payments;
import com.literaryfamily.literaryfamily.entity.PaymentsExample;
import com.literaryfamily.literaryfamily.myUtil.PageUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PaymentsMapper {
	long countByExample(PaymentsExample example);

	int deleteByExample(PaymentsExample example);

	int deleteByPrimaryKey(@Param("id") Long id, @Param("paymentsId") String paymentsId);

	int insert(Payments row);

	int insertSelective(Payments row);

	List<Payments> selectByExample(PaymentsExample example);

	Payments selectByPrimaryKey(@Param("id") Long id, @Param("paymentsId") String paymentsId);

	int updateByExampleSelective(@Param("row") Payments row, @Param("example") PaymentsExample example);

	int updateByExample(@Param("row") Payments row, @Param("example") PaymentsExample example);

	int updateByPrimaryKeySelective(Payments row);

	int updateByPrimaryKey(Payments row);


	List<Payments> selectUserPaymentHistory(Long userId, PageUtil pageUtil);

	Payments selectByPaymentOrdersId(String paymentOrdersId);
}